//
//  NSBundle+GetImg.m
//  Pods
//
//  Created by 范浩云 on 2018/3/15.
//

#import "NSBundle+GetImg.h"
#import "QAIMViewController.h"
@implementation NSBundle (GetImg)

+ (instancetype)QAIM_refreshBundle
    {
        static NSBundle *refreshBundle = nil;
        if (refreshBundle == nil) {
            // 这里不使用mainBundle是为了适配pod 1.x和0.x
            refreshBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:[QAIMViewController class]] pathForResource:@"QAGameIM" ofType:@"bundle"]];
        }
        return refreshBundle;
}
    
    
+ (UIImage *)QAIM_arrowImageWithImgName:(NSString *)imgName
{
 
    UIImage *arrowImage  = [[UIImage imageWithContentsOfFile:[[self QAIM_refreshBundle] pathForResource:imgName ofType:@"png"]] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    return arrowImage;
}
@end
